package com.zhong.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhong.common.utils.WrapperUtils;
import com.zhong.system.domain.SysNotice;
import com.zhong.system.mapper.SysNoticeMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 公告 服务层实现
 *
 * @author zhongzc
 */
@Service
@RequiredArgsConstructor
public class SysNoticeService extends ServiceImpl<SysNoticeMapper, SysNotice>
{

    public Page<SysNotice> findPage(SysNotice notice){
        return page(notice.getPage(), WrapperUtils.getLambdaQueryWrapper(notice));
    }
}
